<!-- Begin units/new.tpl -->
<form method="post" action="?module=units&action=new&gid={$smarty.get.gid}">

{opentable}
{titlebar colspan=6 title="Create New Records"}

<table border="0" cellspacing="1" cellpadding="3" width="80%" align="left">

<tr class="sectiontableheader">
<td width="10%">Profile</td>
<td>Tickets</td>
<td>Base</td>

</tr>
{php}for ($x = 1;$x < 6;$x++) {{/php}
<tr class="sectiontableentry1">

<td width="30%">
<select name="profileid{php}print $x;{/php}" >
<option value="">(Select)</option>
{if is_array($profiles)}
{foreach from=$profiles key=profileid item=profile}
<option value="{$profileid}"{if $profileid eq $user.pid} selected="selected"{/if}>{$profile}</option>
{/foreach}
{/if}
</select>
</td>

<td width="30%"><input type="text" size="16" maxlength="32" name="units{php}print $x;{/php}" /></td>

<td width="30%">
<select name="basis{php}print $x;{/php}" >
<option value="">(Select.)</option>
{if is_array($unit_basis)}
{foreach from=$unit_basis key=id item=basis}
<option value="{$id}">{$basis}</option>
{/foreach}
{/if}
</select>
</td>

</tr>

{php}}{/php}

</table>

<tr>
<td colspan="3"><input type="submit" class="button" value="Valider" /></td>
</tr>

</table>
</form>

<!-- End units/new.tpl -->

